package com.learn.core.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Description
 *
 * @author zhaohongyu
 * @ClassName LExamSort
 * @date 2021.03.22 10:57
 * @describe 考试分类
 */
@TableName("l_exam_sort")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value="LExamSort对象", description="考试分类")
public class LExamSort implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "exam_sort_id", type = IdType.AUTO)
    private Integer examSortId;

    @ApiModelProperty(value = "分类名称")
    @TableField("exam_sort_name")
    private String examSortName;

    @ApiModelProperty(value = "主办单位")
    @TableField("organization_id")
    private Integer organizationId;

    @TableField(exist = false)
    private String organizationName;

    public String getOrganizationName() {
        return organizationName;
    }

    public void setOrganizationName(String organizationName) {
        this.organizationName = organizationName;
    }

    @ApiModelProperty(value = "说明")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "考试分类")
    @TableField("parent_node")
    private Integer parentNode;

    @ApiModelProperty(value = "分类名称")
    @TableField("state")
    private String state;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_user")
    private String createUser;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_user")
    private String updateUser;

    @TableField(exist = false)
    private List<LExamSort> chilLExamSort;

    public Integer getExamSortId() {
        return examSortId;
    }

    public void setExamSortId(Integer examSortId) {
        this.examSortId = examSortId;
    }

    public String getExamSortName() {
        return examSortName;
    }

    public void setExamSortName(String examSortName) {
        this.examSortName = examSortName;
    }

    public Integer getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(Integer organizationId) {
        this.organizationId = organizationId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getParentNode() {
        return parentNode;
    }

    public void setParentNode(Integer parentNode) {
        this.parentNode = parentNode;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public List<LExamSort> getChilLExamSort() {
        return chilLExamSort;
    }

    public void setChilLExamSort(List<LExamSort> chilLExamSort) {
        this.chilLExamSort = chilLExamSort;
    }

    @Override
    public String toString() {
        return "LExamSort{" +
                "examSortId=" + examSortId +
                ", examSortName='" + examSortName + '\'' +
                ", organizationId=" + organizationId +
                ", description='" + description + '\'' +
                ", parentNode='" + parentNode + '\'' +
                ", state='" + state + '\'' +
                ", createTime=" + createTime +
                ", createUser='" + createUser + '\'' +
                ", updateTime=" + updateTime +
                ", updateUser='" + updateUser + '\'' +
                '}';
    }
}
